home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / sys / amiga / old / plamiga.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  3.4 KB  |  131 lines

  1. /* $Id: plamiga.h,v 1.1 1993/03/15 21:30:54 mjl Exp $
  2.    $Log: plamiga.h,v $
  3.  * Revision 1.1  1993/03/15  21:30:54  mjl
  4.  * Files shuffled around in the Amiga driver reorganization.
  5.  *
  6.  * Revision 1.1  1992/10/12  17:11:23  mjl
  7.  * Amiga-specific mods, including ANSI-fication.
  8.  *
  9.  * Revision 1.2  1992/09/29  04:45:31  furnish
  10.  * Massive clean up effort to remove support for garbage compilers (K&R).
  11.  *
  12.  * Revision 1.1  1992/05/20  21:33:41  furnish
  13.  * Initial checkin of the whole PLPLOT project.
  14.  *
  15. */
  16.  
  17. #include <exec/types.h>
  18. #include <exec/ports.h>
  19. #include <exec/memory.h>
  20. #include <devices/printer.h>
  21. #include <devices/prtbase.h>
  22. #include <graphics/display.h>
  23. #include <graphics/gfxbase.h>
  24. #include <graphics/view.h>
  25. #include <graphics/gfxmacros.h>
  26. #include <intuition/intuition.h>
  27. #include <intuition/intuitionbase.h>
  28. #include <intuition/screens.h>
  29.  
  30. #ifdef LATTICE_50
  31. #include <proto/exec.h>
  32. #include <proto/graphics.h>
  33. #include <proto/intuition.h>
  34. #include <proto/dos.h>
  35. #endif
  36.  
  37. #ifdef AZTEC_C
  38. #include <functions.h>
  39. #endif
  40.  
  41. /* Graphics data buffer file. */
  42. #define PLOTBFFR      "t:plplot.plt"
  43.  
  44. #ifndef PLARGS
  45. #ifdef LATTICE_50
  46. #define a)   a
  47. #else
  48. #define a)   ()
  49. #endif
  50. #endif
  51.  
  52.  
  53. /* Flags for variables in PLPrefs structure. */
  54. /* WinType defines */
  55. #define PLCUST      01        /* Open on custom screen */
  56. #define PLASP       02        /* Maintain initial aspect */
  57. #define PLBUFF      04        /* Buffer plot in t:plplot.plt */
  58.  
  59. /* ScrType defines */
  60. #define PLLACE      01
  61. #define PLHIRES     02
  62.  
  63. struct PLPrefs {
  64.     USHORT WinType;
  65.     USHORT ScrType;
  66.     USHORT WXPos, WYPos;    /* Position of Window (WorkBench) */
  67.     USHORT WWidth, WHeight;    /* Window width, height (WorkBench) */
  68.     USHORT CXPos, CYPos;    /* Position of Window (Custom) */
  69.     USHORT CWidth, CHeight;    /* Window width, height (Custom) */
  70.     USHORT Depth;        /* Screen Depth (1, 2, 3, 4) (Custom) */
  71.     USHORT Color[16];        /* Color RGB values (Custom Only) */
  72. };
  73.  
  74. /* Define graphics operation types */
  75. #define PENU  10
  76. #define PEND  20
  77. #define SPEN  30
  78. #define PWID  40
  79.  
  80. extern struct IntuitionBase *IntuitionBase;
  81. extern struct GfxBase *GfxBase;
  82.  
  83. extern struct Screen *PLScreen;
  84. extern struct Window *PLWindow;
  85. extern struct RastPort *PLSRPort;    /* Screen rastport */
  86. extern struct RastPort *PLWRPort;    /* Window rastport */
  87. extern struct ViewPort *PLVPort;
  88. extern struct ColorMap *PLCMap;
  89.  
  90. extern struct PLPrefs PLCurPrefs;
  91. extern PLINT XOffset, YOffset, PLWidth, PLHeight;
  92. extern PLINT InitPLWidth, InitPLHeight;
  93.  
  94. /* Function prototypes */
  95.  
  96. void    OpenPLWind    (void);
  97. void    OpenLibs    (void);
  98. void    ClosePLWind    (void);
  99. void    CloseLibs    (void);
  100. void    GetPLDefs    (void);
  101. void    SetPLDefs    (void);
  102. void    setlimits    (void);
  103. void    plcolreq    (void);
  104. void    RestorePrefs    (void);
  105. void    setpen        (PLINT color);
  106. void    MakePLMenu    (void);
  107. void    enablemenus    (void);
  108. void    disablemenus    (void);
  109. void    menuselect    (ULONG class, USHORT code);
  110. void    eventwait    (void);
  111. PLINT    eventhandler    (ULONG class, USHORT code);
  112. PLINT    procmess    (void);
  113. void    remakeplot    (void);
  114. void    PLDraw        (PLINT x, PLINT y);
  115. void    PLMove        (PLINT x, PLINT y);
  116. void    prepupdate    (void);
  117. int    getpoint    (long *com, long *x, long *y);
  118. void    finiupdate    (void);
  119.  
  120. void    screendump    (PLINT type);
  121. void    saveiff        (void);
  122. void    disablegads    (PLINT flag);
  123. void    enablegads    (void);
  124.  
  125. int    mapinit        (long bmapx, long bmapy);
  126. void    mapclear    (void);
  127. void    mapfree        (void);
  128. void    mapline        (register int x1, register int y1,
  129.              register int x2, register int y2);
  130. void    iffwritefile    (PLINT xdpi, PLINT ydpi, FILE *File);
  131.